#ifndef PACKETBUFFER_H
#define PACKETBUFFER_H

#include <QObject>
#include "Packet.h"

class PacketBuffer : public QObject
{
	Q_OBJECT

public:
	PacketBuffer(size_t size, QObject *parent = 0);
	~PacketBuffer();

private:
	std::vector<Packet*>		_buffer;
	size_t						_capacity;
	size_t						_index;

public:
	Packet						*get();
	
};

#endif // PACKETBUFFER_H
